package com.goldgov.column.service;

import java.math.BigInteger;
import java.sql.Timestamp;

import com.fasterxml.jackson.annotation.JsonFormat;

public class Column {
	public static final Integer FOCUS_YES = new Integer(1);//关注
	public static final Integer FOCUS_NO = new Integer(2);//未关注
	/**
	 * 栏目简介
	 */
	private String columnKeyword;

	/**
	 * 栏目关键字的扩展
	 */
	private String columnDescrip;

	/**
	 * 栏目属性
	 * 
	 * @see ColumnTypeEnum
	 */
	private int columnType;

	/**
	 * 如果为最终栏目列表，则保持栏目列表的地址 如果为外部链接，则保存外部链接的地址
	 */
	private String columnUrl;

	/**
	 * 最终列表栏目的列表模板地址
	 */
	private String columnListUrl;

	/**
	 * 栏目类型，直接影响栏目发布的表单样式
	 */
	private int columnContentModelId;

	/**
	 * 栏目保存路径
	 */
	private String columnPath;

	/**
	 * 与Category类别类绑定ID
	 */
	private Integer categoryId;

	/**
	 * 类别标题
	 */
	private String categoryTitle;

	/**
	 * 类别排序
	 */
	private String category_sort;

	/**
	 * 类别发布时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Timestamp categoryDateTime;

	/**
	 * 发布用户编号(发布者编号)
	 */
	private int categoryManagerId;

	/**
	 * 所属模块编号
	 */
	private int categoryModelId;

	/**
	 * 父类别的编号
	 */
	private int categoryCategoryId;

	/**
	 * 缩略图
	 */
	private String categorySmallImg;

	/**
	 * 类别的排序
	 */
	private int categorySort;
	/**
	 * 点击量
	 */
	private BigInteger columnClickNum;
	
	private Integer isFocus;//是否关注
	
	private String moduleName;//栏目名称
	private Integer clickNum;//点击量
	
	public int getCategorySort() {
		return categorySort;
	}

	public void setCategorySort(int categorySort) {
		this.categorySort = categorySort;
	}

	public String getColumnKeyword() {
		return columnKeyword;
	}

	public void setColumnKeyword(String columnKeyword) {
		this.columnKeyword = columnKeyword;
	}

	public String getColumnDescrip() {
		return columnDescrip;
	}

	public void setColumnDescrip(String columnDescrip) {
		this.columnDescrip = columnDescrip;
	}

	public int getColumnType() {
		return columnType;
	}

	public void setColumnType(int columnType) {
		this.columnType = columnType;
	}

	public String getColumnUrl() {
		return columnUrl;
	}

	public void setColumnUrl(String columnUrl) {
		this.columnUrl = columnUrl;
	}

	public String getColumnListUrl() {
		return columnListUrl;
	}

	public void setColumnListUrl(String columnListUrl) {
		this.columnListUrl = columnListUrl;
	}

	public int getColumnContentModelId() {
		return columnContentModelId;
	}

	public void setColumnContentModelId(int columnContentModelId) {
		this.columnContentModelId = columnContentModelId;
	}

	public String getColumnPath() {
		if (columnPath == null || columnPath.trim().equals("") || columnPath.length() < 0) {
			return columnPath;
		}
		return columnPath.replace("\\", "/");
	}

	public void setColumnPath(String columnPath) {
		this.columnPath = columnPath;
	}

	public Integer getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(Integer categoryId) {
		this.categoryId = categoryId;
	}

	public String getCategoryTitle() {
		return categoryTitle;
	}

	public void setCategoryTitle(String categoryTitle) {
		this.categoryTitle = categoryTitle;
	}

	public String getCategory_sort() {
		return category_sort;
	}

	public void setCategory_sort(String category_sort) {
		this.category_sort = category_sort;
	}

	public Timestamp getCategoryDateTime() {
		return categoryDateTime;
	}

	public void setCategoryDateTime(Timestamp categoryDateTime) {
		this.categoryDateTime = categoryDateTime;
	}

	public int getCategoryManagerId() {
		return categoryManagerId;
	}

	public void setCategoryManagerId(int categoryManagerId) {
		this.categoryManagerId = categoryManagerId;
	}

	public int getCategoryModelId() {
		return categoryModelId;
	}

	public void setCategoryModelId(int categoryModelId) {
		this.categoryModelId = categoryModelId;
	}

	public int getCategoryCategoryId() {
		return categoryCategoryId;
	}

	public void setCategoryCategoryId(int categoryCategoryId) {
		this.categoryCategoryId = categoryCategoryId;
	}

	public String getCategorySmallImg() {
		return categorySmallImg;
	}

	public void setCategorySmallImg(String categorySmallImg) {
		this.categorySmallImg = categorySmallImg;
	}

	private String userId ;

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public BigInteger getColumnClickNum() {
		return columnClickNum;
	}

	public void setColumnClickNum(BigInteger columnClickNum) {
		this.columnClickNum = columnClickNum;
	}

	public Integer getIsFocus() {
		return isFocus;
	}

	public void setIsFocus(Integer isFocus) {
		this.isFocus = isFocus;
	}

	public String getModuleName() {
		return moduleName;
	}

	public void setModuleName(String moduleName) {
		this.moduleName = moduleName;
	}

	/**
	 * @return the clickNum
	 */
	public Integer getClickNum() {
		return clickNum;
	}

	/**
	 * @param clickNum the clickNum to set
	 */
	public void setClickNum(Integer clickNum) {
		this.clickNum = clickNum;
	}
}
